package design_patterns.nullobject.bean;

import design_patterns.nullobject.AbstractCustomer;

/**
 * @author chengz
 * @description 不为空
 * @create 2020-12-23 16:51
 */
public class RealCustomer extends AbstractCustomer {

    public RealCustomer(String name) {
        this.name = name;
    }

    @Override
    public boolean isNil() {
        return false;
    }

    @Override
    public String getName() {
        return name;
    }
}
